<?php
//indique aca los lenguajes que su app tendra disponibles
$languages = array(_("Español Venezuela") => "es_VE.UTF-8", _("Inglés") => "en_US.UTF-8");
$callback = array("id" => 'language_selector');
if (CommanderSession::exist('locale')) {

    $selected = CommanderSession::get('locale');
} else {

    $selected = '';
}

print _("Idioma");
?>

<form id="frm_language_selector" action="" method="POST">

<?php
echo CommanderView::imput_select('locale', $languages, $selected, $callback);
?>

</form>


<script>

    $(document).ready(function(){
    
        $("#language_selector").change(function(){
        
        
            $("#frm_language_selector").submit();
        
        
        });
    
    
    
    });


</script>